package com.ivanceras.server.db;

import java.sql.ResultSet;

import com.ivanceras.shared.db.DAO;
import com.ivanceras.shared.db.IDatabase;
import com.ivanceras.shared.db.Filter;
import com.ivanceras.shared.db.IModelDef;
import com.ivanceras.shared.db.Join;
import com.ivanceras.shared.db.Order;
import com.ivanceras.shared.exception.DatabaseException;

/**
 * Future release plan for apache hive/hadoop support
 */
public class DB_Hive implements IDatabase {

	@Override
	public void beginTransaction() throws DatabaseException {
		// TODO Auto-generated method stub

	}

	@Override
	public void commitTransaction() throws DatabaseException {
		// TODO Auto-generated method stub

	}

	@Override
	public void rollbackTransaction() throws DatabaseException {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean isTransacted() throws DatabaseException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public DAO[] select(IModelDef model, Join join, Filter[] filters,
			Integer offset, Integer limit, Boolean doCount, Order[] orders)
			throws DatabaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean createModel(IModelDef model) throws DatabaseException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public DAO insert(DAO dao, IModelDef model) throws DatabaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public DAO update(DAO dao, IModelDef model, Filter[] filters)
			throws DatabaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int delete(IModelDef model, Filter[] filters) throws DatabaseException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int empty(IModelDef model) throws DatabaseException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public boolean drop(IModelDef model) throws DatabaseException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isClosed() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean reset() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Integer getTotalRecords(String schema, String modelName)
			throws DatabaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public IModelDef getModelMetaData(String tableName) throws DatabaseException {
		// TODO Auto-generated method stub
		return null;
	}

//	@Override
//	public ResultSet executeSelectSQL(String sql, Object[] parameters)
//			throws DatabaseException {
//		// TODO Auto-generated method stub
//		return null;
//	}

	@Override
	public String[] getTableNames(String schema, String tablePattern)
			throws DatabaseException {
		// TODO Auto-generated method stub
		return null;
	}

}
